package com.fw.ui.view.common.util;

import java.io.Serializable;

import com.vaadin.server.Resource;
import com.vaadin.ui.Table.Align;

@SuppressWarnings("rawtypes")
public class TableHeaderProperty implements Serializable {

    private static final long serialVersionUID = 1L;

    private String columnId;
    private String columnName;
    private Class type;
    private Align alignment;
    private Integer order;
    private Object defaultValue;
    private Resource iconResource;
    private Integer width;
    private Boolean visible = Boolean.TRUE;
    private String formatPattern;

    public Boolean getVisible() {
	return visible;
    }

    public void setVisible(Boolean visible) {
	this.visible = visible;
    }

    public String getColumnId() {
	return columnId;
    }

    public void setColumnId(String columnId) {
	this.columnId = columnId;
    }

    public String getColumnName() {
	return columnName;
    }

    public void setColumnName(String columnName) {
	this.columnName = columnName;
    }

    public Class getType() {
	return type;
    }

    public void setType(Class type) {
	this.type = type;
    }

    public Align getAlignment() {
	return alignment;
    }

    public void setAlignment(Align alignment) {
	this.alignment = alignment;
    }

    public Integer getOrder() {
	return order;
    }

    public void setOrder(Integer order) {
	this.order = order;
    }

    public void setDefaultValue(Object defaultValue) {
	this.defaultValue = defaultValue;
    }

    public Object getDefaultValue() {
	return defaultValue;
    }

    public void setIconResource(Resource iconResource) {
	this.iconResource = iconResource;
    }

    public Resource getIconResource() {
	return iconResource;
    }

    public void setWidth(Integer width) {
	this.width = width;
    }

    public Integer getWidth() {
	return width;
    }

    public String getFormatPattern() {
	return formatPattern;
    }

    public void setFormatPattern(String formatPattern) {
	this.formatPattern = formatPattern;
    }

}
